package com.jd.jr.insights.dm.dim.util.easyui.paginate;

import java.util.List;

/**
 * Created by Administrator on 2017/7/30.
 */
public class PaggerForEasyUI extends Pagger{



    private int total;   //返回数据条数总值，对应totalRow;

    /**
     * 总页数
     */
    private int totalPage;

    private int page;  //第几页的数据，对应pageNum;pageNumber;



    private int pageSize=PAGE_SIZE;

    public PaggerForEasyUI(int totalRow, int totalPage, int pageNum, List<?> list) {
        super(totalRow, totalPage, pageNum, list);
    }

    public int getPage() {
        return getPageNum();
    }

    public void setPage() {
        this.page = getPageNum();
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize() {
        this.pageSize = PAGE_SIZE;
    }

    public int getTotal() {
        return getTotalRow();
    }

    public void setTotal() {
        this.total = getTotalRow();
    }

}
